home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1999 November / SOTMC_Nov1999-Ultimate.iso / mac / REALbasic ƒ / Examples / Applications / whack ƒ / Read Me! < prev    next >
Encoding:
Text File  |  1998-08-27  |  1.7 KB  |  36 lines  |  [ttro/ttxt]

  1. This is a game of the "whack-a-mole" type, with Bill Gates cast in the part
  2. of the mole (and a pie in the face signifying when he has been whacked).
  3. Sorry about that.
  4.  
  5. The purpose of the project was originally to teach myself about timers and
  6. threads. Ultimately, it turned out to be a good demonstration of the use of
  7. control arrays too, as well as the technique for flicker-free scrolling of
  8. a graphic (the final touch, and the hardest part to figure out).
  9.  
  10. I have commented the code heavily, in the hope that it may be useful to
  11. some other neophyte.
  12.  
  13. What most impressed me was that, thanks to the convenience of the IDE and
  14. to the use of classes, instantiations, and object messaging, the
  15. development cycle was extremely easy - REALBasic definitely encourages
  16. improvisation - and very little coding was actually required (if we
  17. discount syntactic sugar such as "end if", "dim", and other silly garbage
  18. foist upon us by the essential backwardness of BASIC, it amounted to only
  19. 75 or 80 lines).
  20.  
  21. There are lots of bells and whistles that I never bothered to add. For
  22. instance, the game runs at different speeds on different machines, it
  23. doesn't keep track of high scores, and so on. But those features were
  24. outside the scope of the original project, and after all, one must stop and
  25. declare the thing finished sooner or later.
  26.  
  27. The project requires REALBasic F5 or later (ie CR1). An unfortunate feature
  28. of the project is that it does not work very well in the IDE - you have to
  29. build the actual application in order to test it. I think this has to do
  30. with some sort of problem with threads and/or redrawing. However, in F4 it
  31. crashed the IDE and didn't run at all in the built app, so I'm not
  32. complaining!
  33.  
  34. Matt Neuburg
  35. matt@tidbits.com
  36. http://www.tidbits.com/matt/